/* $RCSFile: Shipping2ElectronicDelivery.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/AddonNice.ECommerce.BankGateway/Shipping2ElectronicDelivery.cs $
 * $log$
 * Revision 8 2010/08/09 10:07:05  christian.surieux
 *   Added Log comment to all cs files
 */

using System;
using System.Configuration;
using System.Data;
using AddonNice.ECommerce;

namespace AddonNice.ECommerce.Gateways.Shipping
{
	/// <summary>
	/// ShippingElectronicDelivery is always 0.
	/// It assumes you have no delivery costs.
	/// </summary>
	public class Shipping2ElectronicDelivery : ShippingGtwBase
	{
		/// <summary>
		/// Each ShippingObject must implement this name.
		/// Using this name ShippingGtwDataLoader can instantiate the class.
		/// </summary>
		public override string Name
		{
			get{return "ElectronicDelivery2";}
		}

		public override	int ShippingsID
		{
			get{	return 100;}
		}

		/// <summary>
        /// No packing is necessary
		/// </summary>
		public override	bool NeedPackaging
		{
			get {   return false;}
		}

        public override bool IsElectronicDelivery
		{
			get {   return true;}
		}
        
        public override bool IsShippingDelivery
		{
			get {   return false;}
		}

        public override bool ExistShipping(string wCartID, string wCountryID,string wCurrency)
		{
			Init(wCartID,wCountryID,wCurrency);
			return true;
		}

		/// <summary>
		/// Calculates the shipping cost of the cart.
		/// This will more likely change in future.
		/// </summary>
		public override decimal Calculate(string wCartID, string wCountry,string wCurrency,decimal Total)
		{
			Init(wCartID,wCountry,wCurrency);
			return 0m;
		}
	}
}
